#include "decision.h"
#include "ber.h"
#include "spec.h"

int main()
{
    typedef vector<complex<double>> Signal;
    typedef vector<Signal> SignalSystem;
    
    Decision
    <
        Minimize<BitErrorRate>,
        Maximize<OutBandEmission>
    > decision;
    
    SignalSystem signalSystem=
    {
        {polar(0, 1) , polar(1, 2), polar(0, 1), polar(4, 1), polar(-3, 1), polar(0, 1) };
        {polar(3, 1) , polar(3, 3), polar(1, 1), polar(1, 0), polar(-2, 1), polar(0, 1) };
    };
    
    
    cout << decision(signalSystem) << endl;
}
